package com.szp.spCloud.gatewayService.feign;

import com.szp.spCloud.pojo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name="code-service")
public interface CodeClient {

    @RequestMapping(value = "/api/code/validate/{email}/{code}",method= RequestMethod.GET)
    public R validateCode(@PathVariable(value = "email") String email, @PathVariable(value = "code") String code);
}
